<?php


namespace Miniprogram\Controller;


use Think\Controller;

class CoreController extends Controller
{
    protected $m;
    protected $lang;
    protected $config;

    public function _initialize(){

    }
    protected function checkId($id,$field=array()){
        if(!$id)
            error($this->config['parr_err']);
        if(!$info=$this->m->field($field)->find($id))
            error($this->config['parr_err']);
        return $info;
    }
}